#ifndef __XMLPARSE_INCLUDED__
#define __XMLPARSE_INCLUDED__
#include "xml_parse_command.h"
#endif

#ifndef __STRING_INCLUDED__
#define __STRING_INCLUDED__
#include <string>
#endif


c_xml_parse_command::c_xml_parse_command(int C_ID, char * P_1, char * P_2){

command_ID = C_ID;

if (Param1 !=NULL){
Param1 = new char[strlen(P_1)+1];	
strcpy(Param1, P_1);
}

if (Param2 != NULL){
Param2 = new char[strlen(P_2)+1];	
strcpy(Param2, P_2);
}

}



c_xml_parse_command::~c_xml_parse_command(){
	if (Param1 !=NULL){delete[] Param1;}
	if (Param2 !=NULL){delete[] Param2;}
}


c_xml_parse_command::GetValues(int &C_ID, char * &P_1, char * &P_2){

strcpy(P_1,Param1);
strcpy(P_2,Param2);
C_ID = command_ID;

return(0);
}


c_xml_parse_command::GetValues(int &C_ID, char * &P_1){

strcpy(P_1,Param1);
C_ID = command_ID;

return(0);
}